Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix #7827 - Fixed incorrect status code and error message when rate own event. #7855

Conversation

ChernenkoVitaliy
Copy link
Contributor

GreenCity PR

Issue Link 📋

https://github.com/orgs/ita-social-projects/projects/44/views/1?pane=issue&itemId=89331619&issue=ita-social-projects%7CGreenCity%7C7827

Added

  • Added restriction to rate own event in method rateEvent() in EventSeviceImpl class;
  • Created missed unit tests for rateEvent() method for EventServiceImpl class;
  • Added method getEventNotStartedYet() for creating not started event yet into ModelUtils class;
  • Added error message constant 'Organizer have no rights to rate the own event' into ErrorMessages class;

Changed

  • Replaced restTemplate to userRepo for finding user by email in rateEvent() method in EventServiceImpl class;

Summary Of Changes 🔥

Improvement according to task https://github.com/orgs/ita-social-projects/projects/44/views/1?pane=issue&itemId=89331619&issue=ita-social-projects%7CGreenCity%7C7827;
Improved test coverage for rateEvent() method for EventServiceImpl class(covered 100%);

…viceImpl;

Replaced restTemplate to userRepo for finding userByEmail in rateEvent() method in EventServiceImpl;
Added error message constant 'Organizer have no rights to rate the own event' into ErrorMessages class;
Created missed unit tests for rateEvent() method for EventServiceImpl class;
Added method getEventNotStartedYet() for creating not started event yet into ModelUtils class;
@ChernenkoVitaliy ChernenkoVitaliy self-assigned this Dec 2, 2024
@ChernenkoVitaliy ChernenkoVitaliy merged commit f54b81b into dev Dec 3, 2024
3 checks passed
@ChernenkoVitaliy ChernenkoVitaliy deleted the bug/7827-wrong-status-code-and-message-when-rate-own-event branch December 3, 2024 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants